package 抽象类;

public abstract class Anamil {
    //抽象方法一定要在抽像类中
    //抽象方法不用写内容
    private String name;
    public abstract void run();
    public Anamil(){
    }
    public Anamil(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
